//
//  ZQQSegmentBarConfig.m
//  ZQQSegmentBar
//
//  Created by MoDao-iOS on 2017/7/14.
//  Copyright © 2017年 wushengdubai. All rights reserved.
//

#import "ZQQSegmentBarConfig.h"

@implementation ZQQSegmentBarConfig

+ (instancetype)defaultConfig {
    ZQQSegmentBarConfig *config = [[ZQQSegmentBarConfig alloc] init];
    config.segmentBarBackColor = [UIColor clearColor];
    config.itemFont = [UIFont systemFontOfSize:15];
    config.itemNormalColor = [UIColor colorWithRed:80/255.0 green:80/255.0 blue:80/255.0 alpha:1.0];
    config.itemSelectColor = [UIColor colorWithRed:215/255.0 green:105/255.0 blue:74/255.0 alpha:1.0];
    
    config.indicatorColor = [UIColor colorWithRed:235/255.0 green:112/255.0 blue:84/255.0 alpha:1.0];
    config.indicatorHeight = 2;
    config.indicatorExtraW = 8;
    config.tabBarH = 49;
    
    return config;
}

- (ZQQSegmentBarConfig *(^)(UIColor *))itemNorColor {
    return ^(UIColor *color) {
        self.itemNormalColor = color;
        return self;
    };
}

- (ZQQSegmentBarConfig *(^)(UIColor *))itemSelColor {
    return ^(UIColor *color) {
        self.itemSelectColor = color;
        return self;
    };
}

- (ZQQSegmentBarConfig *(^)(CGFloat))indicatorEW {
    return ^(CGFloat w) {
        self.indicatorExtraW = w;
        return self;
    };
}

@end
